{* Smarty *}
{*
 *  This file is part of Urd.
 *
 *  Urd is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *  Urd is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program. See the file "COPYING". If it does not
 *  exist, see <http://www.gnu.org/licenses/>.
 *
 * $LastChangedDate: 2008-06-14 11:01:35 +0200 (Sat, 14 Jun 2008) $
 * $Rev: 1161 $
 * $Author: styck $
 * $Id: ajax_showtransfers.tpl 1161 2008-06-14 09:01:35Z styck $
 *}
{* Ajax page, doesn't need a head/foot tpl *}
<div id="hideoverlay">
<img src="{$IMGDIR}/icon_cancel.png" class="buttonlike" alt="Close" title="Close" onclick="javascript:thisdiv=document.getElementById('usenetservereditdiv'); ToggleClass(thisdiv, 'editusenetserveroff'); ToggleClass(thisdiv,'editusenetserveron');"/>
</div>
<h2>{if $id eq 'new'}{$LN_usenet_addserver}{else}{$LN_usenet_editserver}{/if}</h2>
<input type="hidden" name="challenge" id="challenge" value="{$challenge}"/>
<input type="hidden" name="id" id="id" value="{$id}"/></td>
<table>
<tr><td {popup text=$LN_usenet_name_msg|escape }>{$LN_usenet_name}: </td><td colspan="3"><input type="text" name="name" id="name" value="{$name|escape}" size="{$text_box_size}"/></td></tr>
<tr><td {popup text=$LN_usenet_hostname_msg|escape }>{$LN_usenet_hostname}: </td><td colspan="3"><input type="text" name="hostname" id="hostname" value="{$hostname|escape}" size="{$text_box_size}"/></td></tr>
<tr><td {popup text=$LN_usenet_port_msg|escape }>{$LN_usenet_port}: </td><td ><input type="text" name="port" value="{$port|escape}" id="port" size="{$number_box_size}"/></td>
<td {popup text=$LN_usenet_secport_msg|escape }>{$LN_usenet_secport}:</td><td> <input type="text" id="sec_port" name="secure_port" value="{$sec_port|escape}" size="{$number_box_size}"/> </td></tr>
<tr><td {popup text=$LN_usenet_needsauthentication_msg|escape }>{$LN_usenet_needsauthentication}:</td><td colspan="3"> <input type="checkbox" id="needauthentication" name="authentication" {if $authentication eq 1} checked="checked"{/if} onclick=/></td></tr>
<tr><td {popup text=$LN_usenet_username_msg|escape }>{$LN_usenet_username}: </td><td colspan="3"><input type="text" name="username" value="{$username|escape}" id="username" size="{$text_box_size}"/></td></tr>
<tr><td {popup text=$LN_usenet_password_msg|escape }>{$LN_usenet_password}: </td><td colspan="3"><input type="text" name="password" value="{$password|escape}" id="password" size="{$text_box_size}"/> </td></tr>
<tr><td {popup text=$LN_usenet_nrofthreads_msg|escape }>{$LN_usenet_nrofthreads}:</td><td><input type="text" name="threads" value="{$threads|escape}" id="threads" size="{$number_box_size}"/></td>
<td {popup text=$LN_usenet_priority_msg|escape }>{$LN_usenet_priority}: </td><td><input type="text" name="priority" value="{$priority|escape}" id="priority" size="{$number_box_size}"/></td></tr>
<tr><td {popup text=$LN_usenet_connectiontype_msg|escape }>{$LN_usenet_connectiontype}</td><td>
{html_options name="connection" id="connection" options=$connection_types selected=$connection }
</td>
<td {popup text=$LN_usenet_retention_msg|escape }>{$LN_usenet_retention}:</td><td><input type="text" name="retention" value="{$retention|escape}" id="retention" size="{$number_box_size}"/></td></tr>
<tr><td {popup text=$LN_usenet_compressed_headers_msg|escape }>{$LN_usenet_compressed_headers}</td><td><input type="checkbox" name="compressed_headers" value="{$compressed_headers|escape}" id="compressed_headers" {if $compressed_headers eq 1} checked="checked"{/if} /></td></tr>
<tr><td {popup text=$LN_usenet_posting|escape }>{$LN_usenet_posting}</td><td><input type="checkbox" name="posting" value="{$posting|escape}" id="posting" {if $posting eq 1} checked="checked"{/if} /></td></tr>
<tr><td>
{if $id eq 'new'}
	<input type="submit" name="add" value="{$LN_add}" onclick="javascript:update_usenet_server();" class="submit"/>
{else}
	<input type="submit" name="apply" value="{$LN_apply}" class="submit" onclick="javascript:update_usenet_server();"/>
{/if}
</td>
</tr>
</table>


